import request from '@/utils/request'

// 查询返货记录列表
export function listReturnstockrecord(query) {
  return request({
    url: '/system/returnstockrecord/list',
    method: 'get',
    params: query
  })
}
export function listCount(query) {
  return request({
    url: '/system/returnstockrecord/listCount',
    method: 'get',
    params: query
  })
}

// 查询返货记录详细
export function getReturnstockrecord(id) {
  return request({
    url: '/system/returnstockrecord/' + id,
    method: 'get'
  })
}

// 新增返货记录
export function addReturnstockrecord(data) {
  return request({
    url: '/system/returnstockrecord',
    method: 'post',
    data: data
  })
}

// 修改返货记录
export function updateReturnstockrecord(data) {
  return request({
    url: '/system/returnstockrecord',
    method: 'put',
    data: data
  })
}

// 删除返货记录
export function delReturnstockrecord(id) {
  return request({
    url: '/system/returnstockrecord/' + id,
    method: 'delete'
  })
}

// 导出返货记录
export function exportReturnstockrecord(query) {
  return request({
    url: '/system/returnstockrecord/export',
    method: 'get',
    params: query
  })
}